package com.mingle.iwalk.uploader;


import org.apache.http.HttpResponse;

public class Status {

	private int httpResposeCode;
	
	
	/**
	 * @return the httpResposeCode
	 */
	public int getHttpResposeCode() {
		return httpResposeCode;
	}


	/**
	 * @param httpResposeCode the httpResposeCode to set
	 */
	public void setHttpResposeCode(int httpResposeCode) {
		this.httpResposeCode = httpResposeCode;
	}


	Status(HttpResponse httpResponse){
		if(httpResponse == null)
		{
			httpResposeCode = -1;
		}
		else
		{
			httpResposeCode  = httpResponse.getStatusLine().getStatusCode();
		}
	}
}
